package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.UserDto;
import com.zzyl.entity.User;
import com.zzyl.vo.UserVo;

import java.util.List;

public interface UserService {
    /**
     * 分页查询
     * @param userDto
     * @param pageNum
     * @param pageSize
     * @return {@link PageResponse }<{@link List }<{@link User }>>
     */
    PageResponse<UserVo> page(UserDto userDto, Integer pageNum, Integer pageSize);


    /**
     * 启用和禁用
     * @param id
     * @param status
     */
    void isEnable(Long id, String status);

    /**
     * 添加用户
     * @param userDto
     * @return {@link Boolean }
     */
    Boolean save(UserDto userDto);

    void remove(Long userId);
}
